package com.epam.necklace.logic.activity;

import com.epam.necklace.model.stone.Stone;

public class GetWeight {

	public void action() {
		double weight = 0;
		for (Stone beads : Necklace.necklace) {
			weight += beads.getWeight();
		}
		System.out.print("Weight of your necklace- ");
		System.out.format("%.2f", +weight * 5);
		System.out.println(" carat");
	}
}
